'use strict';

function get_integer_interval_2(number_a, number_b) {
  //在这里写入代码
  let arr=[];
  if(number_a<number_b)
  {
    if(number_a%2!=0)
    {
      for(let i=number_a+1;i<=number_b;i=i+2)
      arr.push(i);
    }
    else
    {
      for(let i=number_a;i<=number_b;i=i+2)
      arr.push(i);
    }
  }
  else if(number_a>number_b)
  {
    if(number_a%2!=0)
    {
      for(let i=number_a-1;i>=number_b;i=i-2)
      arr.push(i);
    }
    else
    {
      for(let i=number_a;i>=number_b;i=i-2)
      arr.push(i);
    }

  }
  else 
  {
    if(number_a%2==0)
     arr.push(number_a);
     else
     arr.push();
  }
  return arr;
}

module.exports = get_integer_interval_2;
